package com.itheima.pinda.entity.truck;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.pinda.entity.base.Entity;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 车辆类型表
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "pd_truck_type")
public class PdTruckType extends Entity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 车辆类型名称
     */
    @TableField(value = "`name`")
    private String name;
    /**
     * 准载重量
     */
    @TableField(value = "allowable_load")
    private BigDecimal allowableLoad;
    /**
     * 准载体积
     */
    @TableField(value = "allowable_volume")
    private BigDecimal allowableVolume;
    /**
     * 长
     */
    @TableField(value = "measure_long")
    private BigDecimal measureLong;
    /**
     * 宽
     */
    @TableField(value = "measure_width")
    private BigDecimal measureWidth;
    /**
     * 高
     */
    @TableField(value = "measure_high")
    private BigDecimal measureHigh;
    /**
     * 状态 0：禁用 1：正常
     */
    @TableField(value = "`status`")
    private Integer status;
}